package cn.stylefeng.guns.modular.comment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 评论信息表
 * @author allen
 * @date 2021/4/12 10:26
 * @version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "comment_info")
public class CommentInfoEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发表评论的用户账号的ID
     */
    @TableField(value = "user_account_id")
    private Long userAccountId;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 订单信息ID
     */
    @TableField(value = "order_info_id")
    private Long orderInfoId;

    /**
     * 订单条目id
     */
    @TableField(value = "order_item_id")
    private Long orderItemId;

    /**
     * 商品ID
     */
    @TableField(value = "goods_id")
    private Long goodsId;

    /**
     * 商品sku ID
     */
    @TableField(value = "goods_sku_id")
    private Long goodsSkuId;

    /**
     * 商品sku的销售属性
     */
    @TableField(value = "goods_sku_sale_properties")
    private String goodsSkuSaleProperties;

    /**
     * 总评分，1~5
     */
    @TableField(value = "total_score")
    private Integer totalScore;

    /**
     * 商品评分，1~5
     */
    @TableField(value = "goods_score")
    private Integer goodsScore;

    /**
     * 客服评分，1~5
     */
    @TableField(value = "customer_service_score")
    private Integer customerServiceScore;

    /**
     * 物流评分，1~5
     */
    @TableField(value = "logistics_score")
    private Integer logisticsScore;

    /**
     * 评论内容
     */
    @TableField(value = "comment_content")
    private String commentContent;

    /**
     * 是否晒图，1：晒图，0：未晒图
     */
    @TableField(value = "is_show_pictures")
    private Integer isShowPictures;

    /**
     * 是否系统自动给的默认评论，1：是默认评论，0：不是默认评论
     */
    @TableField(value = "is_default_comment")
    private Integer isDefaultComment;

    /**
     * 评论状态，1：待审核，2：已审核，3：审核不通过
     */
    @TableField(value = "comment_status")
    private Integer commentStatus;

    /**
     * 评论类型，1：好评，总分是4分以上；2：中评，3分；3：差评，1~2分
     */
    @TableField(value = "comment_type")
    private Integer commentType;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USER_ACCOUNT_ID = "user_account_id";

    public static final String COL_USERNAME = "username";

    public static final String COL_ORDER_INFO_ID = "order_info_id";

    public static final String COL_ORDER_ITEM_ID = "order_item_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_GOODS_SKU_ID = "goods_sku_id";

    public static final String COL_GOODS_SKU_SALE_PROPERTIES = "goods_sku_sale_properties";

    public static final String COL_TOTAL_SCORE = "total_score";

    public static final String COL_GOODS_SCORE = "goods_score";

    public static final String COL_CUSTOMER_SERVICE_SCORE = "customer_service_score";

    public static final String COL_LOGISTICS_SCORE = "logistics_score";

    public static final String COL_COMMENT_CONTENT = "comment_content";

    public static final String COL_IS_SHOW_PICTURES = "is_show_pictures";

    public static final String COL_IS_DEFAULT_COMMENT = "is_default_comment";

    public static final String COL_COMMENT_STATUS = "comment_status";

    public static final String COL_COMMENT_TYPE = "comment_type";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}